// scaup - Scala up!
// (c) 2008-2010, Normen Müller, normen.mueller@gmail.com  
// $Id: annotations.scala 80 2010-05-13 12:31:58Z normen.mueller $
package scaup.data.graph

import collection._

/** 
 * @author <a href="mailto:normen.mueller@googlemail.com">Normen M&#xFC;ller</a>
 * @version 0.0.5 */
trait Annotations[K, V] extends mutable.Map[K, V] with mutable.HashTable[K] with mutable.DefaultMapModel[K, V] {  
  /** Sequence of annotations
   */
  lazy val annotations = elements.collect
  
  // Copied from scala.collection.mutable.HashMap
  
  def -= (key: K) { removeEntry(key) }
  
  override def clear() = super.clear()

  override def clone(): Annotations[K, V] = super.clone().asInstanceOf[Annotations[K, V]]
}
